<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
</head>
<body>

<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-tab layui-tab-brief">
            <ul class="layui-tab-title layui_tab_title">
                <li><a href="{:url('setting/indexpri',array('type'=>1))}">基本设置</a></li>
<!--                 <li><a href="{:url('setting/indexpri',array('type'=>2))}">登录配置</a></li> -->
                <li><a href="{:url('setting/indexpri',array('type'=>3))}">短信配置</a></li>
<!--                 <li><a href="{:url('setting/indexpri',array('type'=>4))}">美颜配置</a></li>
                <li><a href="{:url('setting/indexpri',array('type'=>5))}">分享配置</a></li>
                <li><a href="{:url('setting/indexpri',array('type'=>6))}">推送配置</a></li> -->
                <li><a href="{:url('setting/indexpri',array('type'=>7))}">支付配置</a></li>
                <li><a href="{:url('setting/indexpri',array('type'=>8))}">提现配置</a></li>
                <li><a href="{:url('setting/indexpri',array('type'=>9))}">分销配置</a></li>
                <li><a href="{:url('setting/indexpri',array('type'=>10))}">商城配置</a></li>
                <li class="layui-this"><a href="{:url('ads/avatar')}">头像配置</a></li>
            </ul>
        </div>

        <div class="layui-tab layui-tab-brief" lay-filter="tabBrief">
            <div style="padding: 15px 15px 5px 15px;">
                <button class="layui-btn layuiadmin-btn-ads" data-type="add">添加</button>
            </div>


            <div class="layui-card-body">
                <table id="LAY-ads-home-bottom-icon-manage" lay-filter="LAY-ads-home-bottom-icon-manage"></table>
                <script type="text/html" id="table-adslist-ads">
                    <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit"><i class="layui-icon"></i>编辑</a>
                    {{#  if(d.status == 0){ }}
                    <a class="layui-btn layui-btn-xs" lay-event="opt"><i class="layui-icon"></i>生效</a>
                    {{#  } else { }}
                    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="opt"><i class="layui-icon"></i>失效</a>
                    {{#  } }}
                    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><i class="layui-icon"></i>删除</a>
                </script>
            </div>

        </div>
    </div>
</div>

<script src="/layuiadmin/layui/layui.js"></script>
<script>
    layui.config({
        base: '/layuiadmin/' //静态资源所在路径
        , version: "{:config('other.ui_version')}"
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'ads_avatar'], function () {
        var $ = layui.$
            , form = layui.form
            , table = layui.table;

        //事件
        var active = {
            add: function () {
                layer.open({
                    type: 2
                    , title: '添加默认图像'
                    , content: '/admin/ads/avatarAdd'
                    , maxmin: true
                    , area: ['650px', '450px']
                });
            }
        };

        $('.layui-btn.layuiadmin-btn-ads').on('click', function () {
            var type = $(this).data('type');
            active[type] ? active[type].call(this) : '';
        });
    });
</script>
</body>
</html>
